#include <iostream>
using namespace std;
int main ()
{
double s,p;
int k;
double d;
cout<<"procent p=";
cin>>p;
if ((p>0)&&(p<50))
{s=0;
k=0;
d=0;
while (s<=200)
{
    d=10+d*p/100;
    s=s+d;
    k=k+1;
}
cout<<"suymmarniy probeg s="<<s<<"\n"<<"kol-vo dnei k="<<k<<"\n";
}
else cout<<"error";
}
